package cn.gcyl.module.biz.controller.admin.marketinformation.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 市场资讯新增/修改 Request VO")
@Data
public class MarketInformationSaveReqVO {

    @Schema(description = "咨讯id", requiredMode = Schema.RequiredMode.REQUIRED, example = "4102")
    private Integer id;

    @Schema(description = "咨询名称", example = "赵六")
    private String informationName;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "显示状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "显示状态（0正常 1停用）不能为空")
    private Integer status;

    @Schema(description = "首页是否推荐（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "首页是否推荐（0正常 1停用）不能为空")
    private Integer recommendedStatus;

    @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "图片地址不能为空")
    private String imagePath;

    @Schema(description = "详情", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "详情不能为空")
    private String details;

}